package com.zhonghui.wms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhonghui.wms.mapper.WmsWarehousingApplicationMapper;
import com.zhonghui.wms.domain.vo.WmsWarehousingApplicationVo;
import com.zhonghui.wms.service.IWmsWarehousingApplicationService;

/**
 * 智能仓储WMS-入库申请Service业务层处理
 * 
 * @author qiezhi
 * @date 2023-12-18
 */
@Service
public class WmsWarehousingApplicationServiceImpl implements IWmsWarehousingApplicationService 
{
    @Autowired
    private WmsWarehousingApplicationMapper wmsWarehousingApplicationMapper;

    /**
     * 查询智能仓储WMS-入库申请
     * 
     * @param id 智能仓储WMS-入库申请主键
     * @return 智能仓储WMS-入库申请
     */
    @Override
    public WmsWarehousingApplicationVo selectWmsWarehousingApplicationById(String id)
    {
        return wmsWarehousingApplicationMapper.selectWmsWarehousingApplicationById(id);
    }

    /**
     * 查询智能仓储WMS-入库申请列表
     * 
     * @param wmsWarehousingApplication 智能仓储WMS-入库申请
     * @return 智能仓储WMS-入库申请
     */
    @Override
    public List<WmsWarehousingApplicationVo> selectWmsWarehousingApplicationList(WmsWarehousingApplicationVo wmsWarehousingApplication)
    {
        return wmsWarehousingApplicationMapper.selectWmsWarehousingApplicationList(wmsWarehousingApplication);
    }

    /**
     * 新增智能仓储WMS-入库申请
     * 
     * @param wmsWarehousingApplication 智能仓储WMS-入库申请
     * @return 结果
     */
    @Override
    public int insertWmsWarehousingApplication(WmsWarehousingApplicationVo wmsWarehousingApplication)
    {
        return wmsWarehousingApplicationMapper.insertWmsWarehousingApplication(wmsWarehousingApplication);
    }

    /**
     * 修改智能仓储WMS-入库申请
     * 
     * @param wmsWarehousingApplication 智能仓储WMS-入库申请
     * @return 结果
     */
    @Override
    public int updateWmsWarehousingApplication(WmsWarehousingApplicationVo wmsWarehousingApplication)
    {
        return wmsWarehousingApplicationMapper.updateWmsWarehousingApplication(wmsWarehousingApplication);
    }

    /**
     * 批量删除智能仓储WMS-入库申请
     * 
     * @param ids 需要删除的智能仓储WMS-入库申请主键
     * @return 结果
     */
    @Override
    public int deleteWmsWarehousingApplicationByIds(String[] ids)
    {
        return wmsWarehousingApplicationMapper.deleteWmsWarehousingApplicationByIds(ids);
    }

    /**
     * 删除智能仓储WMS-入库申请信息
     * 
     * @param id 智能仓储WMS-入库申请主键
     * @return 结果
     */
    @Override
    public int deleteWmsWarehousingApplicationById(String id)
    {
        return wmsWarehousingApplicationMapper.deleteWmsWarehousingApplicationById(id);
    }
}
